package com.itmk.web.goods_order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itmk.web.goods_order.entity.GoodsOrder;
import com.itmk.web.goods_order.entity.OrderParm;
import com.itmk.web.goods_order.entity.OrderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author 山顶洞人郑某
 * @className GoodsOrderMapper.java
 * @date 2023 12 11
 */
@Mapper
public interface GoodsOrderMapper extends BaseMapper<GoodsOrder> {
    Page<OrderVo> getList(Page<OrderParm> page);

    @Select("select order_id from max_id where id = 1")
    Long maxId();
    @Update("update max_id set order_id = #{l} where id = 1")

    void updateMaxId(long l);
}
